<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<jsp:useBean id="user" class="cn.com.zaprk.jsp.bean.User" scope="request">
</jsp:useBean>

<%
    // 设置属性值
    user.setName("张三");
    user.setPwd("root");
%>

<h1>
    <%= user.getName()%>
</h1>
<h1>
    <%= user.getPwd()%>
</h1>
</body>
</html>
